package com.project.springboot.mongodb.multi.ds.domain;

import java.io.Serializable;

import org.bson.types.ObjectId;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
public class User implements Serializable {

	private static final long serialVersionUID = 1927922907215737249L;

	private ObjectId id;
	private String userName;
	private String passWord;

	@Override
	public String toString() {
		return "{\"id\":\"" + id + "\", \"userName\":\"" + userName + "\", \"passWord\":\"" + passWord + "\"}";
	}

	public User(String userName, String passWord) {
		super();
		this.userName = userName;
		this.passWord = passWord;
	}

}
